//
//  CardCell.m
//  WuJieLive
//
//  Created by 张瀚坤 on 2017/11/8.
//  Copyright © 2017年 zhk. All rights reserved.
//

#import "CardCell.h"

@implementation CardCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.bgView.layer.masksToBounds = YES;
    self.bgView.layer.cornerRadius = 10;
    self.cardImage.layer.cornerRadius = self.cardImage.height / 2;
    self.cardImage.layer.masksToBounds = YES;
}

- (void)bindDataWithModel:(BankCardModel *)model
{
    [self.cardImage sd_setImageWithURL:[NSURL URLWithString:model.bank_logo] placeholderImage:PlaceImage];
    self.cardNumLabel.text = model.card_num;
    self.bankNameLabel.text = [NSString stringWithFormat:@"%@(%@)",model.bank_name,model.card_type_name];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
